﻿/*
    Write a program that finds the biggest of five numbers by using only five if statements.
 */

using System;
using System.Linq;
class TheBiggestOfFiveNumbers
{
    static void Main()
    {
        Console.WriteLine("Enter five numbers: ");
        double[] numbers = new double[5];

        for (int i = 0; i < numbers.Length; i++)
        {
            numbers[i] = double.Parse(Console.ReadLine());
        }

    
        if (numbers[0] == numbers.Max())
        {
            Console.WriteLine(numbers[0]);
        }
        if (numbers[1] == numbers.Max())
        {
            Console.WriteLine(numbers[1]);
        }
        if (numbers[2] == numbers.Max())
        {
            Console.WriteLine(numbers[2]);
        }
        if (numbers[3] == numbers.Max())
        {
            Console.WriteLine(numbers[3]);
        }
        if (numbers[4] == numbers.Max())
        {
            Console.WriteLine(numbers[4]);
        }

       
    }

}
